<template>
	<view>
		<cu-custom :bgLiner="true" :isBlack="false">
			<block slot="content">厨师详情</block>
		</cu-custom>
		<view class="position-rel z-i-1 p-l-15 p-r-15 p-t-5 p-b-10">
			<view class="">
				<view class="chef-item flex scale-1px-bottom align-center" v-for="(item,index) in chef" :key="index">
					<view class="flex align-center">
						<image :src="item.url" class="chef-img"></image>
					</view>
					<view class="p-l-10" >
						<view class="f-14  fontBold text-overflow-1">
							{{item.name}}
						</view>
						<view class="f-14 text-overflow-1 m-t-8">
							简介：{{item.introduce}}
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: 0,
				chef: [],
			}
		},
		onLoad(option) {
			this.id = option.id;
			this.getInfo();
		},
		methods: {
			getInfo() {
				let data = {
					shop_id: this.id
				}
				this.$http('/apicloud/Shop/shopInfo', data).then(res => {
					if (res.code == 200) {
						let datas = res.data;
						this.chef = datas.chef;
					}
				})
			},
		}
	}
</script>

<style lang="less">
	.chef-item {
		position: relative;
		padding: 30rpx 0;
		.tip {
			width: 96rpx;
			height: 40rpx;
			background: #FECB2E;
			border-radius: 16rpx;
			font-size: 24rpx;
			color: #ffffff;
			display: flex;
			justify-content: center;
			align-items: center;
			position: absolute;
			left: -1px;
			top: -1px;
			z-index: 11;
		}
	
		.chef-img {
			width: 140rpx;
			height: 140rpx;
			border-radius: 12rpx;
		}
	}
</style>
